RewriteEngine on
RewriteBase  /AllMyLinks/

# linkinfo
RewriteRule ^i-([1-9][0-9]*)-([1-9][0-9]*)-([a-zA-Z0-9_-]*).html index.php?AML_open=linkinfo&AML_linkid=$1&AML_linkcat=$2&title=$3
RewriteRule ^i-([1-9][0-9]*)-([1-9][0-9]*).html index.php?AML_open=linkinfo&AML_linkid=$1&AML_linkcat=$2
RewriteRule ^i-([1-9][0-9]*).html index.php?AML_open=linkinfo&AML_linkid=$1
RewriteRule ^g-([1-9][0-9]*).html action/gotolink.php?AML_linkid=$1
# categorieview
RewriteRule ^c-([1-9][0-9]*)-([0-9]*)-([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html index.php?AML_open=links&AML_linkcat=$1&AML_entry=$2&AML_orderby=$3&AML_orderby_type=$4&title=$5
RewriteRule ^c-([1-9][0-9]*)-([0-9]*)-([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html index.php?AML_open=links&AML_linkcat=$1&AML_entry=$2&AML_orderby=$3&AML_orderby_type=$4
RewriteRule ^c-([1-9][0-9]*)-([a-zA-Z0-9_-]*).html index.php?AML_open=links&AML_linkcat=$1&title=$2
RewriteRule ^c-([1-9][0-9]*).html index.php?AML_open=links&AML_linkcat=$1
RewriteRule ^m-([a-zA-Z0-9_-]*).html index.php?AML_open=$1